package com.example.designer.ChainOfResponsibility.filter;

import com.example.designer.ChainOfResponsibility.Msg;

/**
 * @author zhaoyunlong
 * @date 2020/12/17
 * @description
 */
public class WebFilter implements Filter {
    @Override
    public void doFilter(Msg msg) {
        String s = msg.getMsg();
        s.replace("xxx.com", "http://www.xxx.com");
        msg.setMsg(s);
    }
}
